From: Hilko Bengen Date: Sun, 16 Feb 2025 01:54:36 +0000 (+0100) Subject: Make tests that need a kernel image skippable X-Git-Tag: archive/raspbian/5.2.2-8+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22mailto:tmurad%40gmail.com//%22mailto:i18n-csb%40linuxcsb.org/%22/%22http:/www.example.com/%22mailto:tmurad%40gmail.com/%22mailto:i18n-csb%40linuxcsb.org/%22?a=commitdiff_plain;h=0626a1818958471a4ae13e2eb2a4db6b16bb1bc6;p=supermin.git Make tests that need a kernel image skippable Gbp-Pq: Name 0004-Make-tests-that-need-a-kernel-image-skippable.patch --- diff --git a/tests/test-build-bash.sh b/tests/test-build-bash.sh index 0b75d8b..8f9bc30 100755 --- a/tests/test-build-bash.sh +++ b/tests/test-build-bash.sh @@ -18,6 +18,11 @@ set -e +if [ -n "$SKIP_TEST_BUILD_BASH" ]; then + echo "$0: test skipped because SKIP_TEST_BUILD_BASH is set." + exit 77 +fi + # XXX Hack for Arch. if [ -f /etc/arch-release ]; then export SUPERMIN_KERNEL=/boot/vmlinuz-linux diff --git a/tests/test-if-newer-ext2.sh b/tests/test-if-newer-ext2.sh index 1f12333..cfec690 100755 --- a/tests/test-if-newer-ext2.sh +++ b/tests/test-if-newer-ext2.sh @@ -17,6 +17,12 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. set -e + +if [ -n "$SKIP_TEST_IF_NEWER_EXT2" ]; then + echo "$0: test skipped because SKIP_TEST_IF_NEWER_EXT2 is set." + exit 77 +fi + set -x # XXX Hack for Arch.